package com.endi.sap.enums;

public enum DingDingActionEnums {

    SAVE_DATE("SAVE_DATE",1),
    DELETE_DATE("DELETE_DATE",2),
    UPDATE_DATE("UPDATE_DATE",3),
    QUERY_DATE("QUERY_DATE",4),
    ;

    private String name;

    private Integer code;

    DingDingActionEnums(String name, Integer code) {
        this.name = name;
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public static DingDingActionEnums getEnum(String name) {
        for (DingDingActionEnums funModuleEnum : DingDingActionEnums.values()) {
            if (funModuleEnum.name.equals(name)) {
                return funModuleEnum;
            }
        }
        return null;
    }

}
